package com.shiro.receiver.handler;

import com.alibaba.fastjson2.JSONObject;
import lombok.extern.slf4j.Slf4j;
import com.shiro.receiver.entity.Payload;

@Slf4j
public abstract class AbstractEventHandler {

    public boolean canHandle(Payload<JSONObject> payload) {
        return true;
    }

    public void preHandle(Payload<JSONObject> payload) {

    }

    public abstract void handle(Payload<JSONObject> payload);

    public void postHandle(Payload<JSONObject> payload) {

    }

}
